package com.asset.dispoal.business.bsCase.domain.db.mapper;

import com.asset.dispoal.business.bsCase.domain.db.entity.BsCaseMediation;
import org.apache.ibatis.annotations.Mapper;

/**
 * @description:
 * @author: yf
 * @date: 2022-09-30 16:00:21
 */
@Mapper
public interface BsCaseMediationMapper {

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    BsCaseMediation queryById(String id);

    /**
     * 根据id更新
     *
     * @param bsCaseMediation
     * @return
     */
    int update(BsCaseMediation bsCaseMediation);

    /**
     * 查询是否存在未还清的期数
     *
     * @param caseId
     * @return
     */
    int toRepaymentPriod(String caseId);
}
